Creates a new instance of the
SqlQuery Class.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function New( _
ByVal command As String, _
ByVal ParamArray parameters() As Object _
) |
| Visual Basic (Usage) | Copy Code |
|---|
Dim command As String
Dim parameters() As Object
Dim instance As SqlQuery(command, parameters)
|
| Managed Extensions for C++ | |
|---|
public: SqlQuery(
string* command,
params Object*[]* parameters
) |
Parameters
- command
- Command that is executed on the storage.
- parameters
- Parameter that are passed for the command.
Exceptions
| Exception | Description |
| ArgumentNullException | Command is null. |
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also